import request from '@/utils/request'

// 查询套餐信息列表
export function listCarPackageAudit(query) {
  return request({
    url: '/workflow/carPackageAudit/list',
    method: 'get',
    params: query
  })
}

// 查看流程进度流程图
export function readProcessImg(id){
  return request({
    url:'/workflow/carPackageAudit/processImg/'+id,
    method:'get'
  })
}

//撤销审核流程
export function cancelProcess(data){
  return request({
    url:'/workflow/carPackageAudit/cancel',
    method:'post',
    data
  })
}

//历史审批
export function historyProcess(instanceId){
  return request({
    url:'/workflow/carPackageAudit/history/'+instanceId,
    method: 'get'
  })
}
